<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Whisper: rand_embedding_engine.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Whisper
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">rand_embedding_engine.h</div>  </div>
</div>
<div class="contents">
<a href="rand__embedding__engine_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __RAND_EMBEDDING_ENGINE_H__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __RAND_EMBEDDING_ENGINE_H__ 1</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &quot;<a class="code" href="lsb__embedding__engine_8h.html">lsb/lsb_embedding_engine.h</a>&quot;</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="preprocessor">#include &quot;<a class="code" href="lcg_8h.html">lcg.h</a>&quot;</span> <span class="comment">// linear congruential generator, a prng</span>
<a name="l00007"></a>00007 
<a name="l00017"></a><a class="code" href="classCRandEmbeddingEngine.html">00017</a> <span class="keyword">class </span><a class="code" href="classCRandEmbeddingEngine.html" title="implementation of the lsb embedding where random lsb&#39;s are taken to hide the data bits...">CRandEmbeddingEngine</a> : <span class="keyword">public</span> <a class="code" href="classCLSBEmbeddingEngine.html" title="implementation of the LSB embedding algorithm.">CLSBEmbeddingEngine</a>
<a name="l00018"></a>00018 {
<a name="l00019"></a>00019 <span class="keyword">public</span>:
<a name="l00020"></a>00020         <a class="code" href="classCRandEmbeddingEngine.html#a1241abf0524e9337ba9488a1a6598717">CRandEmbeddingEngine</a>(<a class="code" href="classIBitSource.html" title="abstract steg payload bit source">IBitSource</a>* pBitSource);
<a name="l00021"></a>00021         <span class="keyword">virtual</span> <a class="code" href="classCRandEmbeddingEngine.html#a2edc661cd21bd8c5c1ffe088c3f1f7cb">~CRandEmbeddingEngine</a>();
<a name="l00022"></a>00022 
<a name="l00023"></a>00023         <span class="keyword">virtual</span> std::string <a class="code" href="classCRandEmbeddingEngine.html#a96e54e0cb255a0cc5715ad7199256c76" title="get the abbreviation for the properties reader">getIniSectionName</a>() <span class="keyword">const</span>;
<a name="l00024"></a>00024 
<a name="l00025"></a>00025         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCRandEmbeddingEngine.html#a54803d6a4f5d537ca5065271623ab4d5" title="hook call for glue code">embedIntoSamples</a>(int8_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak);
<a name="l00026"></a>00026         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCRandEmbeddingEngine.html#a54803d6a4f5d537ca5065271623ab4d5" title="hook call for glue code">embedIntoSamples</a>(uint8_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak);
<a name="l00027"></a>00027         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCRandEmbeddingEngine.html#a54803d6a4f5d537ca5065271623ab4d5" title="hook call for glue code">embedIntoSamples</a>(int16_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak);
<a name="l00028"></a>00028         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCRandEmbeddingEngine.html#a54803d6a4f5d537ca5065271623ab4d5" title="hook call for glue code">embedIntoSamples</a>(uint16_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak);
<a name="l00029"></a>00029 
<a name="l00030"></a>00030         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCRandEmbeddingEngine.html#ad2f2ad1c4af1efd19d7f9f324e5068b4" title="hook call for glue code">extractFromSamples</a>(int8_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pInBuffer);
<a name="l00031"></a>00031         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCRandEmbeddingEngine.html#ad2f2ad1c4af1efd19d7f9f324e5068b4" title="hook call for glue code">extractFromSamples</a>(uint8_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pInBuffer);
<a name="l00032"></a>00032         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCRandEmbeddingEngine.html#ad2f2ad1c4af1efd19d7f9f324e5068b4" title="hook call for glue code">extractFromSamples</a>(int16_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pInBuffer);
<a name="l00033"></a>00033         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCRandEmbeddingEngine.html#ad2f2ad1c4af1efd19d7f9f324e5068b4" title="hook call for glue code">extractFromSamples</a>(uint16_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pInBuffer);
<a name="l00034"></a>00034 
<a name="l00035"></a>00035         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCRandEmbeddingEngine.html#ad7153a1344e4fca0b855851e0c346596">changeSettings</a>();
<a name="l00036"></a>00036 
<a name="l00037"></a>00037 <span class="keyword">private</span>:
<a name="l00038"></a>00038         <a class="code" href="classCRandEmbeddingEngine.html#a1241abf0524e9337ba9488a1a6598717">CRandEmbeddingEngine</a>();
<a name="l00039"></a>00039         <a class="code" href="classCRandEmbeddingEngine.html#a1241abf0524e9337ba9488a1a6598717">CRandEmbeddingEngine</a>(<span class="keyword">const</span> <a class="code" href="classCRandEmbeddingEngine.html" title="implementation of the lsb embedding where random lsb&#39;s are taken to hide the data bits...">CRandEmbeddingEngine</a>&amp; );
<a name="l00040"></a>00040         <a class="code" href="classCRandEmbeddingEngine.html" title="implementation of the lsb embedding where random lsb&#39;s are taken to hide the data bits...">CRandEmbeddingEngine</a>&amp; <a class="code" href="classCRandEmbeddingEngine.html#a587fe0bad241ff43d92acab118def69d">operator=</a>(<span class="keyword">const</span> <a class="code" href="classCRandEmbeddingEngine.html" title="implementation of the lsb embedding where random lsb&#39;s are taken to hide the data bits...">CRandEmbeddingEngine</a>&amp; );
<a name="l00041"></a>00041 
<a name="l00042"></a><a class="code" href="classCRandEmbeddingEngine.html#afc64519350828e8ab0d31ca4940f302c">00042</a>         <span class="keyword">static</span> <span class="keyword">const</span> std::string <a class="code" href="classCRandEmbeddingEngine.html#afc64519350828e8ab0d31ca4940f302c">sIniSectionName</a>;
<a name="l00043"></a>00043 
<a name="l00050"></a><a class="code" href="classCRandEmbeddingEngine.html#ab09f2cfec754c8d413cc8721e4d7a97a">00050</a>         <a class="code" href="classCLSBEmbeddingEngine.html" title="implementation of the LSB embedding algorithm.">CLSBEmbeddingEngine</a>* <a class="code" href="classCRandEmbeddingEngine.html#ab09f2cfec754c8d413cc8721e4d7a97a">mEmbeddingEngine</a>;
<a name="l00051"></a>00051 
<a name="l00055"></a><a class="code" href="classCRandEmbeddingEngine.html#a56f7c37c06f97bdad61a24b2a45b5651">00055</a>         <a class="code" href="classCLcg.html">CLcg</a>* <a class="code" href="classCRandEmbeddingEngine.html#a56f7c37c06f97bdad61a24b2a45b5651">mRandom</a>;
<a name="l00056"></a>00056 
<a name="l00057"></a>00057         <span class="comment">// lcg parameters</span>
<a name="l00058"></a>00058         <span class="comment">// seed, multiplier, increment and modulo</span>
<a name="l00059"></a>00059 
<a name="l00060"></a><a class="code" href="classCRandEmbeddingEngine.html#a821a6627d59f284960d81514f8e7d686">00060</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classCRandEmbeddingEngine.html#a821a6627d59f284960d81514f8e7d686">mSeed</a>;
<a name="l00061"></a><a class="code" href="classCRandEmbeddingEngine.html#aaa953369788426b87458f9da4ae4d088">00061</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classCRandEmbeddingEngine.html#aaa953369788426b87458f9da4ae4d088">mMultiplier</a>;
<a name="l00062"></a><a class="code" href="classCRandEmbeddingEngine.html#a9b6328e97066c6848dbe8d82b53ea0b2">00062</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classCRandEmbeddingEngine.html#a9b6328e97066c6848dbe8d82b53ea0b2">mIncrement</a>;
<a name="l00063"></a><a class="code" href="classCRandEmbeddingEngine.html#aed96142234beb18c5d871c663549697d">00063</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classCRandEmbeddingEngine.html#aed96142234beb18c5d871c663549697d">mModulo</a>;
<a name="l00064"></a>00064 
<a name="l00065"></a>00065         <span class="comment">// ***************</span>
<a name="l00066"></a>00066         <span class="comment">// helper function</span>
<a name="l00067"></a>00067         <span class="comment">// ***************</span>
<a name="l00068"></a>00068 
<a name="l00069"></a>00069         <span class="keywordtype">bool</span> <a class="code" href="classCRandEmbeddingEngine.html#af863b5d117e3ad554d714e24892e33e0">setProperties</a>();
<a name="l00070"></a>00070         <span class="keywordtype">void</span> <a class="code" href="classCRandEmbeddingEngine.html#ac4b667ad17352731894fc8b5080c7750">initPrng</a>();
<a name="l00071"></a>00071         <span class="keywordtype">bool</span> <a class="code" href="classCRandEmbeddingEngine.html#af4b485d99db56b398b850caa2eefab41">sampleToProcess</a>();
<a name="l00072"></a>00072 };
<a name="l00073"></a>00073 
<a name="l00074"></a>00074 <span class="preprocessor">#endif // __RAND_EMBEDDING_ENGINE_H__</span>
<a name="l00075"></a>00075 <span class="preprocessor"></span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:00:39 for Whisper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
